home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / cleanup.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  502 b   |  35 lines

  1. /*
  2. \funcref{cleanup}{void cleanup ()}
  3.     {}
  4.     {}
  5.     {}
  6.     {main()}
  7.     {cleanup.c}
  8.     {
  9.  
  10.         This function is attached to the `at-exit' list by {\em main()}. The
  11.         functions are the following:
  12.  
  13.         \begin{itemize}
  14.  
  15.             \item The current working directory is set to {\em orgdir} (MSDOS
  16.             only).
  17.  
  18.         \end{itemize}
  19.  
  20.     }
  21. */
  22.  
  23. #include "icm-exec.h"
  24.  
  25. extern int
  26.     error_occurred;
  27.  
  28. void cleanup ()
  29. {
  30.     fclose (stdout);
  31. #ifdef MSDOS
  32.     chdir (orgdir);
  33. #endif
  34. }
  35.